class ExampleFilterTest extends GroovyTestCase {

    void testShouldRedirectControllerToGoogle() {
        def expectedDestination

        def controller = new Expando()

        controller.redirect = { destination -> expectedDestination = destination }

        new ExampleFilter().applyTo(controller)

        assert "http://google.com" == expectedDestination
    }

}
